﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace makitRS.WebUI.Models
{
    public class UserAccount
    {
        [Required(ErrorMessage = "Your full name is required")]
        [StringLength(30, ErrorMessage="Must be under 30 characters")]
        [RegularExpression("^[a-zA-Z\\-']+?\\s[a-zA-Z\\-']+?$", ErrorMessage = "Invalid name. Make sure to type your full name.")]
        public string UserName { get; set; }

        [Required(ErrorMessage = "Invalid request, please contact an IT administrator.")]
        public string ClaimedID { get; set; }

        [Required(ErrorMessage = "Your email address is required")]
        [StringLength(320, ErrorMessage = "Must be under 320 characters")]
        public string EmailAddress { get; set; }
        //TODO: Email regex validation

    }
}